package com.wngbms;

import java.util.concurrent.ConcurrentNavigableMap;
import java.util.concurrent.ConcurrentSkipListMap;

public class SkipListTest {
    public static void main(String[] args) {
//        ConcurrentSkipListMap<String, Integer> skipListMap = new ConcurrentSkipListMap<>();
        ConcurrentSkipListMap<Integer, Integer> skipListMap = new ConcurrentSkipListMap<>();

        for (int i = 0; i < 1000; i++) {
//            skipListMap.put(UUID.randomUUID().toString(), i);
            skipListMap.put(i, i);
        }

        ConcurrentNavigableMap<Integer, Integer> subMap = skipListMap.subMap(30, 40);
        ConcurrentNavigableMap<Integer, Integer> integerIntegerConcurrentNavigableMap = skipListMap.headMap(15);
        ConcurrentNavigableMap<Integer, Integer> integerIntegerConcurrentNavigableMap1 = skipListMap.headMap(15, true);
        System.out.println("===========");
    }
}
